//
//  ViewController.m
//  asasdasdsadsadsad
//
//  Created by lanouhn on 16/7/18.
//  Copyright © 2016年 zj. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    NSLog(@"按季度会干啥就看哈数据库萨和会计师");
    NSLog(@"奥斯卡拉卡拉什么只需重新做");
    NSLog(@"45465465465");
    NSLog(@"啥都卡死的骄傲阿萨德撒阿萨德岸上撒旦阿打算撒旦按时打算撒");
    //提示框
    UIAlertController *alertVC = [UIAlertController alertControllerWithTitle:@"屌" message:@"哈哈" preferredStyle:(UIAlertControllerStyleAlert)];
    // 添加输入框
    [alertVC addTextFieldWithConfigurationHandler:nil];
    
    // 取消按钮
    UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"取消" style:(UIAlertActionStyleCancel) handler:^(UIAlertAction * _Nonnull action) {
        //取消的内容
    }];
    // 确定按钮
    UIAlertAction *sendAction = [UIAlertAction actionWithTitle:@"确定" style:(UIAlertActionStyleDefault) handler:^(UIAlertAction * _Nonnull action) {
        //确定的内容
    }];
    //将事件添加到提示框上
    [alertVC addAction:cancelAction];
    [alertVC addAction:sendAction];
    //弹出提示框(C层)
    [self presentViewController:alertVC animated:YES completion:nil];
    
     //并行队列
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        //代码在子线程中执行
        
        //串行队列
        dispatch_async(dispatch_get_main_queue(), ^{
            //代码在主线程中执行
            
        });
    });
    
    
    NSLog(@"啥都卡死的骄傲阿萨德撒阿萨德岸上撒旦2121212312121212121211阿打算撒旦按时打算撒");
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
